package com.cib.yym.homepage.common;

import java.io.IOException;
import java.util.Properties;

public class ConfigLoader {
	private static ConfigLoader instance = new ConfigLoader();
	private Properties propertie;
	
	private ConfigLoader()
	{
		propertie = new Properties(); 
		
		try {
			propertie.load(getClass().getResourceAsStream("/config.properties"));			
		} catch (IOException e) {			
			e.printStackTrace();
		} 
	}
	
	public static ConfigLoader getInstance()
	{
		return instance;
	}
	
	public String getValue(String key)
	{
		return propertie.getProperty(key);
	}
}
